<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>智教慧学云平台</title>
    <style>
        :root {
            --primary-color: #3498db;
            --secondary-color: #2ecc71;
            --dark-color: #2c3e50;
            --light-color: #ecf0f1;
            --danger-color: #e74c3c;
            --warning-color: #f39c12;
        }
        
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
            font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
        }
        
        body {
            background-color: #f5f7fa;
            color: #333;
            line-height: 1.6;
        }
        
        .container {
            max-width: 1200px;
            margin: 0 auto;
            padding: 0 20px;
        }
        
        /* 导航栏样式 */
        header {
            background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
            color: white;
            padding: 1rem 0;
            box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
            position: sticky;
            top: 0;
            z-index: 100;
        }
        
        nav {
            display: flex;
            justify-content: space-between;
            align-items: center;
        }
        
        .logo {
            font-size: 1.8rem;
            font-weight: bold;
            display: flex;
            align-items: center;
        }
        
        .logo i {
            margin-right: 10px;
            font-size: 2rem;
        }
        
        .nav-links {
            display: flex;
            list-style: none;
        }
        
        .nav-links li {
            margin-left: 2rem;
        }
        
        .nav-links a {
            color: white;
            text-decoration: none;
            font-weight: 500;
            transition: all 0.3s ease;
            padding: 0.5rem 1rem;
            border-radius: 4px;
        }
        
        .nav-links a:hover {
            background-color: rgba(255, 255, 255, 0.2);
        }
        
        .auth-buttons a {
            margin-left: 1rem;
            padding: 0.5rem 1.5rem;
            border-radius: 4px;
            text-decoration: none;
            font-weight: 500;
            transition: all 0.3s ease;
        }
        
        .login-btn {
            color: white;
            border: 1px solid white;
        }
        
        .login-btn:hover {
            background-color: rgba(255, 255, 255, 0.1);
        }
        
        .register-btn {
            background-color: white;
            color: var(--primary-color);
        }
        
        .register-btn:hover {
            background-color: rgba(255, 255, 255, 0.9);
        }
        
        /* 英雄区域样式 */
        .hero {
            background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('https://images.unsplash.com/photo-1523050854058-8df90110c9f1?ixlib=rb-1.2.1&auto=format&fit=crop&w=1350&q=80');
            background-size: cover;
            background-position: center;
            height: 500px;
            display: flex;
            align-items: center;
            text-align: center;
            color: white;
        }
        
        .hero-content {
            max-width: 800px;
            margin: 0 auto;
        }
        
        .hero h1 {
            font-size: 3rem;
            margin-bottom: 1rem;
        }
        
        .hero p {
            font-size: 1.2rem;
            margin-bottom: 2rem;
        }
        
        .cta-button {
            display: inline-block;
            background-color: var(--secondary-color);
            color: white;
            padding: 0.8rem 2rem;
            border-radius: 4px;
            text-decoration: none;
            font-weight: bold;
            transition: all 0.3s ease;
        }
        
        .cta-button:hover {
            background-color: #27ae60;
            transform: translateY(-3px);
            box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
        }
        
        /* 特色区域样式 */
        .features {
            padding: 5rem 0;
        }
        
        .section-title {
            text-align: center;
            margin-bottom: 3rem;
        }
        
        .section-title h2 {
            font-size: 2.5rem;
            color: var(--dark-color);
            margin-bottom: 1rem;
        }
        
        .section-title p {
            color: #777;
            max-width: 700px;
            margin: 0 auto;
        }
        
        .features-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
            gap: 2rem;
        }
        
        .feature-card {
            background-color: white;
            border-radius: 8px;
            padding: 2rem;
            box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
            transition: all 0.3s ease;
            text-align: center;
        }
        
        .feature-card:hover {
            transform: translateY(-10px);
            box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
        }
        
        .feature-icon {
            font-size: 3rem;
            color: var(--primary-color);
            margin-bottom: 1.5rem;
        }
        
        .feature-card h3 {
            font-size: 1.5rem;
            margin-bottom: 1rem;
            color: var(--dark-color);
        }
        
        /* 课程区域样式 */
        .courses {
            padding: 5rem 0;
            background-color: #f8f9fa;
        }
        
        .courses-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
            gap: 2rem;
        }
        
        .course-card {
            background-color: white;
            border-radius: 8px;
            overflow: hidden;
            box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
            transition: all 0.3s ease;
        }
        
        .course-card:hover {
            transform: translateY(-10px);
            box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
        }
        
        .course-img {
            height: 200px;
            overflow: hidden;
        }
        
        .course-img img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            transition: all 0.5s ease;
        }
        
        .course-card:hover .course-img img {
            transform: scale(1.1);
        }
        
        .course-content {
            padding: 1.5rem;
        }
        
        .course-category {
            display: inline-block;
            background-color: var(--light-color);
            color: var(--dark-color);
            padding: 0.3rem 0.8rem;
            border-radius: 4px;
            font-size: 0.8rem;
            margin-bottom: 0.5rem;
        }
        
        .course-card h3 {
            font-size: 1.3rem;
            margin-bottom: 0.5rem;
            color: var(--dark-color);
        }
        
        .course-meta {
            display: flex;
            justify-content: space-between;
            color: #777;
            font-size: 0.9rem;
            margin-bottom: 1rem;
        }
        
        .course-price {
            font-weight: bold;
            color: var(--secondary-color);
            font-size: 1.2rem;
        }
        
        /* 登录/注册模态框样式 */
        .modal {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background-color: rgba(0, 0, 0, 0.5);
            z-index: 1000;
            justify-content: center;
            align-items: center;
        }
        
        .modal-content {
            background-color: white;
            border-radius: 8px;
            width: 400px;
            max-width: 90%;
            box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
            animation: modalFadeIn 0.3s ease;
        }
        
        @keyframes modalFadeIn {
            from {
                opacity: 0;
                transform: translateY(-50px);
            }
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }
        
        .modal-header {
            padding: 1.5rem;
            border-bottom: 1px solid #eee;
            display: flex;
            justify-content: space-between;
            align-items: center;
        }
        
        .modal-header h3 {
            font-size: 1.5rem;
            color: var(--dark-color);
        }
        
        .close-btn {
            font-size: 1.5rem;
            cursor: pointer;
            color: #777;
            transition: all 0.3s ease;
        }
        
        .close-btn:hover {
            color: var(--danger-color);
        }
        
        .modal-body {
            padding: 1.5rem;
        }
        
        .form-group {
            margin-bottom: 1.5rem;
        }
        
        .form-group label {
            display: block;
            margin-bottom: 0.5rem;
            font-weight: 500;
            color: var(--dark-color);
        }
        
        .form-control {
            width: 100%;
            padding: 0.8rem;
            border: 1px solid #ddd;
            border-radius: 4px;
            font-size: 1rem;
            transition: all 0.3s ease;
        }
        
        .form-control:focus {
            border-color: var(--primary-color);
            box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.2);
            outline: none;
        }
        
        .btn {
            display: inline-block;
            padding: 0.8rem 1.5rem;
            border-radius: 4px;
            font-weight: 500;
            text-align: center;
            cursor: pointer;
            transition: all 0.3s ease;
            border: none;
        }
        
        .btn-primary {
            background-color: var(--primary-color);
            color: white;
        }
        
        .btn-primary:hover {
            background-color: #2980b9;
        }
        
        .btn-block {
            display: block;
            width: 100%;
        }
        
        .text-center {
            text-align: center;
        }
        
        .mt-3 {
            margin-top: 1rem;
        }
        
        .forgot-password {
            display: block;
            text-align: right;
            margin-top: 0.5rem;
            color: var(--primary-color);
            text-decoration: none;
            font-size: 0.9rem;
        }
        
        .forgot-password:hover {
            text-decoration: underline;
        }
        
        .social-login {
            margin-top: 1.5rem;
        }
        
        .social-login p {
            text-align: center;
            color: #777;
            position: relative;
            margin-bottom: 1rem;
        }
        
        .social-login p::before,
        .social-login p::after {
            content: "";
            display: inline-block;
            width: 30%;
            height: 1px;
            background-color: #ddd;
            position: absolute;
            top: 50%;
        }
        
        .social-login p::before {
            left: 0;
        }
        
        .social-login p::after {
            right: 0;
        }
        
        .social-icons {
            display: flex;
            justify-content: center;
            gap: 1rem;
        }
        
        .social-icon {
            width: 40px;
            height: 40px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            color: white;
            text-decoration: none;
            transition: all 0.3s ease;
        }
        
        .social-icon:hover {
            transform: translateY(-3px);
        }
        
        .facebook {
            background-color: #3b5998;
        }
        
        .google {
            background-color: #db4437;
        }
        
        .twitter {
            background-color: #1da1f2;
        }
        
        /* 找回密码模态框样式 */
        .reset-password-modal {
            display: none;
        }
        
        .verification-code {
            display: flex;
            gap: 0.5rem;
            margin-top: 1rem;
        }
        
        .verification-code input {
            flex: 1;
            text-align: center;
            font-size: 1.2rem;
            padding: 0.5rem;
        }
        
        /* 页脚样式 */
        footer {
            background-color: var(--dark-color);
            color: white;
            padding: 3rem 0;
        }
        
        .footer-content {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
            gap: 2rem;
        }
        
        .footer-column h4 {
            font-size: 1.3rem;
            margin-bottom: 1.5rem;
            position: relative;
            padding-bottom: 0.5rem;
        }
        
        .footer-column h4::after {
            content: "";
            position: absolute;
            left: 0;
            bottom: 0;
            width: 50px;
            height: 2px;
            background-color: var(--primary-color);
        }
        
        .footer-column p {
            margin-bottom: 1rem;
            color: #bbb;
        }
        
        .footer-links {
            list-style: none;
        }
        
        .footer-links li {
            margin-bottom: 0.8rem;
        }
        
        .footer-links a {
            color: #bbb;
            text-decoration: none;
            transition: all 0.3s ease;
        }
        
        .footer-links a:hover {
            color: white;
            padding-left: 5px;
        }
        
        .social-links {
            display: flex;
            gap: 1rem;
            margin-top: 1rem;
        }
        
        .social-links a {
            color: white;
            background-color: rgba(255, 255, 255, 0.1);
            width: 40px;
            height: 40px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: all 0.3s ease;
        }
        
        .social-links a:hover {
            background-color: var(--primary-color);
        }
        
        .copyright {
            text-align: center;
            padding-top: 2rem;
            margin-top: 2rem;
            border-top: 1px solid rgba(255, 255, 255, 0.1);
            color: #bbb;
        }
        
        /* 响应式设计 */
        @media (max-width: 768px) {
            .hero h1 {
                font-size: 2.5rem;
            }
            
            .hero p {
                font-size: 1rem;
            }
            
            nav {
                flex-direction: column;
            }
            
            .nav-links {
                margin-top: 1rem;
            }
            
            .nav-links li {
                margin-left: 1rem;
                margin-right: 1rem;
            }
            
            .auth-buttons {
                margin-top: 1rem;
            }
        }
    </style>
    <!-- 使用Font Awesome图标 -->
    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0-beta3/css/all.min.css">
</head>
<body>
    <!-- 导航栏 -->
    <header>
        <div class="container">
            <nav>
                <div class="logo">
                    <i class="fas fa-graduation-cap"></i>
                    <span>智教慧学云平台</span>
                </div>
                <ul class="nav-links">
                    <li><a href="#home">首页</a></li>
                    <li><a href="#courses">课程</a></li>
                    <li><a href="#features">特色</a></li>
                    <li><a href="#about">关于我们</a></li>
                    <li><a href="#contact">联系我们</a></li>
                </ul>
                <div class="auth-buttons">
                    <a href="#" class="login-btn" id="open-login">登录</a>
                    <a href="#" class="register-btn" id="open-register">注册</a>
                </div>
            </nav>
        </div>
    </header>

    <!-- 英雄区域 -->
    <section class="hero" id="home">
        <div class="container">
            <div class="hero-content">
                <h1>开启您的智慧学习之旅</h1>
                <p>智教慧学云平台为您提供最优质的教育资源，个性化的学习体验，帮助您实现学习目标，提升知识技能。</p>
                <a href="#courses" class="cta-button">探索课程</a>
            </div>
        </div>
    </section>

    <!-- 特色区域 -->
    <section class="features" id="features">
        <div class="container">
            <div class="section-title">
                <h2>我们的特色</h2>
                <p>智教慧学云平台致力于为学生、教师和教育机构提供全方位的教育解决方案</p>
            </div>
            <div class="features-grid">
                <div class="feature-card">
                    <div class="feature-icon">
                        <i class="fas fa-laptop-code"></i>
                    </div>
                    <h3>在线学习</h3>
                    <p>随时随地通过电脑或移动设备访问我们的课程，灵活安排学习时间。</p>
                </div>
                <div class="feature-card">
                    <div class="feature-icon">
                        <i class="fas fa-chalkboard-teacher"></i>
                    </div>
                    <h3>专业教师</h3>
                    <p>由经验丰富的专业教师授课，确保教学质量，解答学习疑问。</p>
                </div>
                <div class="feature-card">
                    <div class="feature-icon">
                        <i class="fas fa-book-open"></i>
                    </div>
                    <h3>丰富资源</h3>
                    <p>涵盖多个学科领域的课程资源，满足不同学习需求。</p>
                </div>
                <div class="feature-card">
                    <div class="feature-icon">
                        <i class="fas fa-chart-line"></i>
                    </div>
                    <h3>学习分析</h3>
                    <p>智能分析学习进度和效果，提供个性化学习建议。</p>
                </div>
            </div>
        </div>
    </section>

    <!-- 课程区域 -->
    <section class="courses" id="courses">
        <div class="container">
            <div class="section-title">
                <h2>热门课程</h2>
                <p>精选优质课程，助您提升技能，拓展知识</p>
            </div>
            <div class="courses-grid">
                <div class="course-card">
                    <div class="course-img">
                        <img src="https://images.unsplash.com/photo-1546410531-bb4caa6b424d?ixlib=rb-1.2.1&auto=format&fit=crop&w=1350&q=80" alt="编程课程">
                    </div>
                    <div class="course-content">
                        <span class="course-category">编程开发</span>
                        <h3>Python全栈开发</h3>
                        <div class="course-meta">
                            <span><i class="far fa-user"></i> 张老师</span>
                            <span><i class="far fa-clock"></i> 60课时</span>
                        </div>
                        <p>从基础到进阶，掌握Python全栈开发技能，包括Django框架、前端开发等。</p>
                        <div class="course-price">¥399</div>
                    </div>
                </div>
                <div class="course-card">
                    <div class="course-img">
                        <img src="https://images.unsplash.com/photo-1551288049-bebda4e38f71?ixlib=rb-1.2.1&auto=format&fit=crop&w=1350&q=80" alt="数据科学课程">
                    </div>
                    <div class="course-content">
                        <span class="course-category">数据科学</span>
                        <h3>数据分析与可视化</h3>
                        <div class="course-meta">
                            <span><i class="far fa-user"></i> 李教授</span>
                            <span><i class="far fa-clock"></i> 45课时</span>
                        </div>
                        <p>学习使用Python进行数据分析，掌握Pandas、NumPy和Matplotlib等工具。</p>
                        <div class="course-price">¥299</div>
                    </div>
                </div>
                <div class="course-card">
                    <div class="course-img">
                        <img src="https://images.unsplash.com/photo-1503676260728-1c00da094a0b?ixlib=rb-1.2.1&auto=format&fit=crop&w=1350&q=80" alt="语言学习课程">
                    </div>
                    <div class="course-content">
                        <span class="course-category">语言学习</span>
                        <h3>商务英语高级课程</h3>
                        <div class="course-meta">
                            <span><i class="far fa-user"></i> Sarah老师</span>
                            <span><i class="far fa-clock"></i> 50课时</span>
                        </div>
                        <p>提升商务场景下的英语沟通能力，包括会议、谈判、邮件写作等实用技能。</p>
                        <div class="course-price">¥259</div>
                    </div>
                </div>
            </div>
        </div>
    </section>

    <!-- 登录模态框 -->
    <div class="modal" id="login-modal">
        <div class="modal-content">
            <div class="modal-header">
                <h3>用户登录</h3>
                <span class="close-btn" id="close-login">&times;</span>
            </div>
            <div class="modal-body">
                <form id="login-form">
                    <div class="form-group">
                        <label for="login-username">用户名或邮箱</label>
                        <input type="text" id="login-username" class="form-control" placeholder="请输入用户名或邮箱" required>
                    </div>
                    <div class="form-group">
                        <label for="login-password">密码</label>
                        <input type="password" id="login-password" class="form-control" placeholder="请输入密码" required>
                    </div>
                    <a href="#" class="forgot-password" id="open-reset-password">忘记密码?</a>
                    <button type="submit" class="btn btn-primary btn-block">登录</button>
                </form>
                <div class="social-login">
                    <p>或使用以下方式登录</p>
                    <div class="social-icons">
                        <a href="#" class="social-icon facebook"><i class="fab fa-facebook-f"></i></a>
                        <a href="#" class="social-icon google"><i class="fab fa-google"></i></a>
                        <a href="#" class="social-icon twitter"><i class="fab fa-twitter"></i></a>
                    </div>
                </div>
                <p class="text-center mt-3">还没有账号? <a href="#" id="switch-to-register">立即注册</a></p>
            </div>
        </div>
    </div>

    <!-- 注册模态框 -->
    <div class="modal" id="register-modal">
        <div class="modal-content">
            <div class="modal-header">
                <h3>用户注册</h3>
                <span class="close-btn" id="close-register">&times;</span>
            </div>
            <div class="modal-body">
                <form id="register-form">
                    <div class="form-group">
                        <label for="register-username">用户名</label>
                        <input type="text" id="register-username" class="form-control" placeholder="请输入用户名" required>
                    </div>
                    <div class="form-group">
                        <label for="register-email">邮箱</label>
                        <input type="email" id="register-email" class="form-control" placeholder="请输入邮箱" required>
                    </div>
                    <div class="form-group">
                        <label for="register-password">密码</label>
                        <input type="password" id="register-password" class="form-control" placeholder="请输入密码" required>
                    </div>
                    <div class="form-group">
                        <label for="register-confirm-password">确认密码</label>
                        <input type="password" id="register-confirm-password" class="form-control" placeholder="请再次输入密码" required>
                    </div>
                    <button type="submit" class="btn btn-primary btn-block">注册</button>
                </form>
                <p class="text-center mt-3">已有账号? <a href="#" id="switch-to-login">立即登录</a></p>
            </div>
        </div>
    </div>

    <!-- 找回密码模态框 -->
    <div class="modal reset-password-modal" id="reset-password-modal">
        <div class="modal-content">
            <div class="modal-header">
                <h3>找回密码</h3>
                <span class="close-btn" id="close-reset-password">&times;</span>
            </div>
            <div class="modal-body">
                <form id="reset-password-form">
                    <div class="form-group">
                        <label for="reset-email">邮箱</label>
                        <input type="email" id="reset-email" class="form-control" placeholder="请输入注册邮箱" required>
                    </div>
                    <div class="form-group">
                        <label for="reset-phone">手机号码</label>
                        <input type="tel" id="reset-phone" class="form-control" placeholder="请输入注册手机号码" required>
                    </div>
                    <button type="button" class="btn btn-primary btn-block" id="send-verification-code">发送验证码</button>
                    <div class="form-group verification-code" id="verification-code-group" style="display: none;">
                        <label for="verification-code">验证码</label>
                        <div style="display: flex;">
                            <input type="text" id="verification-code1" class="form-control" maxlength="1" required>
                            <input type="text" id="verification-code2" class="form-control" maxlength="1" required>
                            <input type="text" id="verification-code3" class="form-control" maxlength="1" required>
                            <input type="text" id="verification-code4" class="form-control" maxlength="1" required>
                            <input type="text" id="verification-code5" class="form-control" maxlength="1" required>
                            <input type="text" id="verification-code6" class="form-control" maxlength="1" required>
                        </div>
                    </div>
                    <div class="form-group" id="new-password-group" style="display: none;">
                        <label for="new-password">新密码</label>
                        <input type="password" id="new-password" class="form-control" placeholder="请输入新密码" required>
                    </div>
                    <div class="form-group" id="confirm-new-password-group" style="display: none;">
                        <label for="confirm-new-password">确认新密码</label>
                        <input type="password" id="confirm-new-password" class="form-control" placeholder="请再次输入新密码" required>
                    </div>
                    <button type="submit" class="btn btn-primary btn-block" id="reset-password-btn" style="display: none;">重置密码</button>
                </form>
            </div>
        </div>
    </div>

    <!-- 页脚 -->
    <footer>
        <div class="container">
            <div class="footer-content">
                <div class="footer-column">
                    <h4>关于智教慧学</h4>
                    <p>智教慧学云平台致力于为学习者提供高质量的在线教育服务，帮助每个人实现终身学习的目标。</p>
                    <div class="social-links">
                        <a href="#"><i class="fab fa-facebook-f"></i></a>
                        <a href="#"><i class="fab fa-twitter"></i></a>
                        <a href="#"><i class="fab fa-linkedin-in"></i></a>
                        <a href="#"><i class="fab fa-instagram"></i></a>
                    </div>
                </div>
                <div class="footer-column">
                    <h4>快速链接</h4>
                    <ul class="footer-links">
                        <li><a href="#home">首页</a></li>
                        <li><a href="#courses">课程</a></li>
                        <li><a href="#features">特色</a></li>
                        <li><a href="#about">关于我们</a></li>
                        <li><a href="#contact">联系我们</a></li>
                    </ul>
                </div>
                <div class="footer-column">
                    <h4>课程分类</h4>
                    <ul class="footer-links">
                        <li><a href="#">编程开发</a></li>
                        <li><a href="#">数据科学</a></li>
                        <li><a href="#">语言学习</a></li>
                        <li><a href="#">职业技能</a></li>
                        <li><a href="#">考试认证</a></li>
                    </ul>
                </div>
                <div class="footer-column">
                    <h4>联系我们</h4>
                    <p><i class="fas fa-map-marker-alt"></i> 北京市海淀区中关村南大街5号</p>
                    <p><i class="fas fa-phone"></i> +86 10 6891 2345</p>
                    <p><i class="fas fa-envelope"></i> info@zhijiaohuixue.com</p>
                </div>
            </div>
            <div class="copyright">
                <p>&copy; 2023 智教慧学云平台. 保留所有权利.</p>
            </div>
        </div>
    </footer>

    <script>
        // 模态框控制
        const loginModal = document.getElementById('login-modal');
        const registerModal = document.getElementById('register-modal');
        const resetPasswordModal = document.getElementById('reset-password-modal');
        
        const openLoginBtn = document.getElementById('open-login');
        const openRegisterBtn = document.getElementById('open-register');
        const openResetPasswordBtn = document.getElementById('open-reset-password');
        
        const closeLoginBtn = document.getElementById('close-login');
        const closeRegisterBtn = document.getElementById('close-register');
        const closeResetPasswordBtn = document.getElementById('close-reset-password');
        
        const switchToRegister = document.getElementById('switch-to-register');
        const switchToLogin = document.getElementById('switch-to-login');
        
        // 打开登录模态框
        openLoginBtn.addEventListener('click', (e) => {
            e.preventDefault();
            loginModal.style.display = 'flex';
            registerModal.style.display = 'none';
            resetPasswordModal.style.display = 'none';
        });
        
        // 打开注册模态框
        openRegisterBtn.addEventListener('click', (e) => {
            e.preventDefault();
            registerModal.style.display = 'flex';
            loginModal.style.display = 'none';
            resetPasswordModal.style.display = 'none';
        });
        
        // 打开找回密码模态框
        openResetPasswordBtn.addEventListener('click', (e) => {
            e.preventDefault();
            resetPasswordModal.style.display = 'flex';
            loginModal.style.display = 'none';
            registerModal.style.display = 'none';
        });
        
        // 关闭模态框
        closeLoginBtn.addEventListener('click', () => {
            loginModal.style.display = 'none';
        });
        
        closeRegisterBtn.addEventListener('click', () => {
            registerModal.style.display = 'none';
        });
        
        closeResetPasswordBtn.addEventListener('click', () => {
            resetPasswordModal.style.display = 'none';
        });
        
        // 切换登录/注册
        switchToRegister.addEventListener('click', (e) => {
            e.preventDefault();
            loginModal.style.display = 'none';
            registerModal.style.display = 'flex';
        });
        
        switchToLogin.addEventListener('click', (e) => {
            e.preventDefault();
            registerModal.style.display = 'none';
            loginModal.style.display = 'flex';
        });
        
        // 点击模态框外部关闭
        window.addEventListener('click', (e) => {
            if (e.target === loginModal) {
                loginModal.style.display = 'none';
            }
            if (e.target === registerModal) {
                registerModal.style.display = 'none';
            }
            if (e.target === resetPasswordModal) {
                resetPasswordModal.style.display = 'none';
            }
        });
        
        // 发送验证码
        const sendVerificationCodeBtn = document.getElementById('send-verification-code');
        const verificationCodeGroup = document.getElementById('verification-code-group');
        const newPasswordGroup = document.getElementById('new-password-group');
        const confirmNewPasswordGroup = document.getElementById('confirm-new-password-group');
        const resetPasswordBtn = document.getElementById('reset-password-btn');
        
        sendVerificationCodeBtn.addEventListener('click', () => {
            // 这里应该有发送验证码到手机的逻辑
            alert('验证码已发送到您的手机，请注意查收');
            verificationCodeGroup.style.display = 'block';
            newPasswordGroup.style.display = 'block';
            confirmNewPasswordGroup.style.display = 'block';
            resetPasswordBtn.style.display = 'block';
            sendVerificationCodeBtn.style.display = 'none';
        });
        
        // 表单提交
        document.getElementById('login-form').addEventListener('submit', (e) => {
            e.preventDefault();
            alert('登录成功！');
            loginModal.style.display = 'none';
        });
        
        document.getElementById('register-form').addEventListener('submit', (e) => {
            e.preventDefault();
            alert('注册成功！');
            registerModal.style.display = 'none';
        });
        
        document.getElementById('reset-password-form').addEventListener('submit', (e) => {
            e.preventDefault();
            alert('密码重置成功！');
            resetPasswordModal.style.display = 'none';
        });
        
        // 验证码输入自动跳转
        const verificationInputs = document.querySelectorAll('.verification-code input');
        verificationInputs.forEach((input, index) => {
            input.addEventListener('input', () => {
                if (input.value.length === 1 && index < verificationInputs.length - 1) {
                    verificationInputs[index + 1].focus();
                }
            });
            
            input.addEventListener('keydown', (e) => {
                if (e.key === 'Backspace' && input.value.length === 0 && index > 0) {
                    verificationInputs[index - 1].focus();
                }
            });
        });
    </script>
</body>
</html>
